aux_source_directory(. ftp_SRCS)

add_subdirectory(tests)

# copy file
file(COPY config.ini DESTINATION ${EXECUTABLE_OUTPUT_PATH})

# add target
add_executable(ftpserver ${ftp_SRCS})
target_link_libraries(ftpserver muduo_net)

# add lib for unittest
add_library(ftpserver_lib ${ftp_SRCS})
target_link_libraries(ftpserver_lib muduo_net)

# install lib
install(TARGETS ftpserver_lib DESTINATION lib)
